const initialState = null;
export default function itemReducer(preState = initialState, action) {
  const { type, data } = action;
  switch (type) {
    case "BOX":
      console.log("进入item的reducer", data);
      return data;
    case "TREE":
      console.log("进入item的reducer", data);
      return data;
    case "NODE":
      console.log("进入item的reducer", data);
      return data;

    default:
      return preState;
  }
}
